home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HamCall (October 1991)
/
HamCall (Whitehall Publishing)(1991).bin
/
bcast
/
bcstcble
/
xamp.bas
< prev
next >
Wrap
BASIC Source File
|
1990-10-14
|
3KB
|
73 lines
10 CLEARW 2:FULLW 2:REM CLEAR SCREEN COMMAND
20 REM APRIL 1986
30 REM TRANSISTOR AMP CALCULATOR
40 REM BY JACK CUNKELMAN
50 GOSUB 900
60 INPUT"SUPPLY VOLTAGE ";V
70 PRINT"THE DROP ACROSS THE COLLECTOR RESISTOR =";V/2;" VOLTS"
80 INPUT"INPUT IMPEDANCE OF THE FOLLOWING STAGE (OHMS)";Z
90 RC=Z/10
100 PRINT"COLLECTOR RESISTOR, RC SHOULD BE ";RC;" OHMS
105 INPUT"THE CLOSEST 5% RESISTOR VALUE TO THIS IS ";RC
110 IC= (.5*V)/RC
120 PRINT"THE COLLECTOR CURRENT IS";IC*1000;" MA"
130 INPUT"DESIRED VOLTAGE GAIN ";G
140 RE=RC/G:R$=CHR$(32)
150 PRINT"THE EMITTER RESISTOR FOR THIS GAIN IS ";RE;" OHMS"
160 IF RE <= 39 OR RE >= 1001 THEN 170 ELSE 180
170 R$=CHR$(42)
180 INPUT"GERMANIUM (G) OR SILICONE (S) TRANSISTOR TYPE ";T$
190 IF T$="G" THEN 210
200 IF T$="S" THEN 220 ELSE 180
210 J=.2:GOTO 230
220 J=.6
230 VE=IC*RE
240 PRINT"THE DROP ACROSS THE EMITTER RESISTOR IS ";VE;" VOLTS"
250 VB=BE+J
260 PRINT"THE BASE VOLTAGE MUST BE ";VB;" VOLTS"
270 INPUT"WHAT IS THE DESIRED INPUT IMPEDANCE FOR THIS STAGE ";IZ
280 RE=IZ*RE*100/((RE*100)-IZ)
290 PRINT"THE BIAS RESISTOR, R2 IS ";R2;" OHMS"
300 INPUT" THE CLOSEST 5% RESISTOR VALUE TO THIS IS ";R2
310 VD=V-VB:I2= VB/R2
320 IB=IC/B
330 R1=(V-VB)/(IB+I2)
340 PRINT"THE BIAS RESISTOR, R1 IS ";R1;" OHMS"
350 INPUT"THE CLOSEST 5% RESISTOR VALUE TO THIS IS ";R1
360 PRINT"CALCULATION OF THE INPUT AND OUTPUT CAPACITOR VALUES"
370 INPUT"LOWEST FREQUENCY THIS AMP SHOULD PASS ";F
380 C1=1/(3.2*F*IZ)
390 C1=C1*1E+6
400 C2=1/(3.2*20*Z)
405 C2=C2*1E+6
410 IE=VE/RE:RJ=.03/IE
420 A=RC/RJ
430 C3=1/(6.2*F*RJ)
440 C3=C3*1E+6
500 REM CLEAR SCREEN
505 CLEARW 2:FULLW 2
510 PRINT"PARAMETERS FOR A COMMON EMITTER AMP STAGE"
520 PRINT
530 PRINT"SUPPLY VOLTAGE ";V;" VOLTS"
540 PRINT"COLLECTOR RESISTOR (RC) ";RC;" OHMS"
550 PRINT"EMITTER RESISTOR (RE) ";RE;" OHMS"
560 PRINT"BIAS RESISTOR (R1) ";R1;" OHMS"
570 PRINT"BIAS RESISTOR (R2) ";R2;" OHMS"
580 PRINT"INPUT CAPACITOR (C1) ";C1;" MF"
590 PRINT"OUTPUT CAPACITOR (C2) ";C2;" MF"
600 PRINT"VOLTAGE GAIN ";G
610 PRINT"TRANSISTOR BETA ";B
620 PRINT"LOW FREQUENCY LIMIT ";F;" HZ"
630 PRINT"EMITTER BYPASS = ";CE;" MF FOR GAIN OF ";A
700 INPUT"RUN AGAIN Y IS YES AND N IS NO";R$
710 IF LEFT$(R$,1)="Y" THEN 10
720 IF LEFT$(R$,1)="N" THEN END ELSE 700
900 PRINT"CALCULATIONS FOR A COMMON EMITTER AMPLIFER STAGE"
910 PRINT
1000 INPUT"TRANSISTOR BETA IF KNOWN (0 IF NOT)";B
1010 IF B=0 THEN B=100
1020 RETURN
2000 REM FROM RADIO ELECTRONICS AUG '87 PAGE56
2010 REM COPYRIGHT 1987 BY GERNSBACK PUBLICATION. POSTED WITH
2020 REM PERMISSION.
..................................................................................